<html>
<head>
    <meta charset="UTF-8">
    <title>页面展示</title>
    <link rel="stylesheet" href="css/main.css">
</head>
<body>
<div>
    <!--  迷宫画布  -->
    <!--  迷宫表  -->
    <table id="maze_table" class="maze_table">
    </table>
    <form onsubmit="return false;">
        <input type="number" name="width" id="width">
        <input type="number" name="height" id="height">
        <button onclick="create_maze_js()">生成迷宫</button>
    </form>
    <button onclick="maze_run_normal()">运行(普通模式)</button>
    <button onclick="maze_run_breadth()">运行(广度优先)</button>
    <button onclick="maze_clean()">重置路径</button>
</div>

<script src="js/wasm_exec.js"></script>
<script src="js/maze.js"></script>
<script>
    init_localstorage();
    const go = new Go();
    WebAssembly.instantiateStreaming(fetch("js/maze.wasm"), go.importObject).then((result) => {
        go.run(result.instance);
        create_maze_js();
    });
</script>
</body>
</html>